package com.yuan.rest.controller;


import com.yuan.rest.controller.vo.UserInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {

    @PostMapping("user/info")
    @ResponseBody
    public String UserInfo(UserInfo user){
        System.out.println(user.toString());
        return user.toString();
    }

}
